package com.qqtop10.manager.service.impl;

import org.springframework.stereotype.Service;
import com.qqtop10.manager.dao.IntegralMapper;
import com.qqtop10.manager.model.Integral;
import com.qqtop10.manager.model.KeyEntity;
import com.qqtop10.manager.service.IntegralService;

@Service("integralService")
public class IntegralServiceImpl implements IntegralService {

	private IntegralMapper integralMapper;

	@Override
	public int deleteByPrimaryKey(KeyEntity key) {
		return integralMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int insert(Integral record) {
		return integralMapper.insert(record);
	}

	@Override
	public int insertSelective(Integral record) {
		return integralMapper.insertSelective(record);
	}

	@Override
	public Integral selectByPrimaryKey(KeyEntity key) {
		return integralMapper.selectByPrimaryKey(key);
	}

	@Override
	public int updateByPrimaryKeySelective(Integral record) {
		return integralMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKey(Integral record) {
		return integralMapper.updateByPrimaryKey(record);
	}

}
